﻿<?php
/* @var $this BlogdetailController */

$this->breadcrumbs=array(
	$article['article_title'],
);
?>
<style type="text/css">
	.pic{
		width: 45px;
		height: 45px;float: left;
	}
	.commentContent{
		float: left;

	}
	.formComment{
			}
</style>

	<div class="warp">
		<p>
			<?php
				echo $article['article_title'];
			?>
		</p>
		<p>
			<span>时间：</span><span><?php echo $article['article_createtime'];?></span>
			<span>浏览量：</span><span><?php echo $article['browse_number']; ?></span>
		</p>
		
		<div class="content">
			<?php
				echo $article['article_content'];
			?>	
		</div>
		<div class="comment">
			<div class="pic" >
				<img src="" alt="">

			</div>
			<div class="commentContent">
				
					<span>姓名</span>
					<span>日期</span>
			</div>


		</div>
		<div class="formComment">
		<?php
			//$this->widget('comment');
			$form = $this->beginWidget('CActiveForm',array(
						'id'=>'comment_form',
						'action'=>'index',
						'method'=>'post',
						'enableClientValidation'=>true,
						'enableAjaxValidation'=>true,
						'clientOptions'=>array(
						'validateOnSubmit'=>true,
					),
				));

				echo $form->labelEx($model,'发表评论:');
				echo $form->textArea($model,'content',array('rows'=>6, 'cols'=>50));
				echo $form->error($model,'content');

				echo $form->labelEx($model,'姓名:');
				echo $form->textField($model,'name');
				echo $form->error($model,'name');

				echo $form->labelEx($model,'email:');
				echo $form->textField($model,'email');
				echo $form->error($model,'email');

				echo $form->labelEx($model,'博客网址:');
				echo $form->textField($model,'blog_url');
				echo $form->error($model,'blog_url');
				?>
				<input type="button" name="commentSubmit" value="发表评论">
		<?php	
			$this->endWidget();
		?>
		</div>

	</div>

